package tech.aistar.day06.design.dp.version02;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/3/15 4:30 下午
 */
public class TestPerson {
    public static void main(String[] args) {
        Person tom = new Person();

        Middler middler = new Middler();

        //中介找房
        middler.setHighLevelHouse(new HighLevelHouse());

        //人找中介
        tom.setMiddler(middler);

        tom.buyHigh("碧桂园");
    }
}
